import { MobXProviderContext } from 'mobx-react'
import { useContext } from 'react'

function useStores(name: string) {
  return useContext(MobXProviderContext)[name]
}

export default useStores